/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.modulars.shop.userorder.service.impl;


import org.opsli.api.wrapper.shop.userorder.ShopUserOrderModel;
import org.opsli.core.base.service.impl.CrudServiceImpl;
import org.opsli.modulars.shop.userorder.entity.ShopUserOrder;
import org.opsli.modulars.shop.userorder.mapper.ShopUserOrderMapper;
import org.opsli.modulars.shop.userorder.service.IShopUserOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户订单 Service Impl
 *
 * @author 17607080935
 * @date 2024-10-31 21:09:23
 */
@Service
public class ShopUserOrderServiceImpl extends CrudServiceImpl<ShopUserOrderMapper, ShopUserOrder, ShopUserOrderModel>
        implements IShopUserOrderService {

    @Autowired(required = false)
    private ShopUserOrderMapper mapper;


//    @Override
//    public Page<ShopUserOrder, ShopUserOrderModel> findPage(Page<ShopUserOrder, ShopUserOrderModel> page){
//        UserModel currUser = UserUtil.getUser();
//        QueryWrapper<ShopUserOrder> queryWrapper = page.getQueryWrapper();
//        queryWrapper.or(qw -> qw.eq("uid", currUser.getId()));
//        page.setQueryWrapper(queryWrapper);
//        return super.findPage(page);
//    }

}